/*
 * @Description: 
 * @Author: lwx
 * @Date: 2022-06-14 16:57:21
 * @LastEditors: lwx
 * @LastEditTime: 2022-12-29 16:46:34
 */
import Vue from "vue";
import App from "./App.vue";
import Element from "element-ui";
import router from "./router";
import store from "./store";
import "element-ui/lib/theme-chalk/index.css";
import "normalize.css/normalize.css";
import "@/styles/index.scss";
import "./icons";
import "./errorLog";
import "./permission";
import "@/utils/dataV";
// 适配flex
import '../src/common/flexible';
import { detectZoom } from '@/utils/detectZoom.js';
const m = detectZoom();
document.body.style.zoom = 125 / Number(m);
router.beforeEach((to, from, next) => {
    if (to.path !== '/dashboard/index') {
        document.body.style.zoom = 125 / Number(m);
    } else {
        document.body.style.zoom = 0
    }
    next()
})
Vue.prototype.$EventBus = new Vue()
Vue.use(Element);
//引入echart
import echarts from "echarts";
Vue.prototype.$echarts = echarts;
Vue.prototype.$bus = new Vue()
Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");